recurrence relations problems and solutions